271e927a0fbb11e0e5656ad71c362901a4e38241,src/main/java/io/github/nucleuspowered/nucleus/modules/warp/commands/WarpCommand.java,WarpCommand,executeCommand,#CommandSource#CommandContext#,140

Before Change



        // Warp them.
        boolean isSafe = !args.getOne("f").isPresent() && adapter.getNodeOrDefault().isSafeTeleport();
        if (!plugin.getTeleportHandler().teleportPlayer(player, wd.getLocation().get(), wd.getRotation(), isSafe)) {
            source.sendMessage(plugin.getMessageProvider().getTextMessageWithFormat("command.warps.nosafe"));

            if (charge) {
                plugin.getEconHelper().depositInPlayer(player, cost, false);
            }
            // Don't add the cooldown if enabled.
            return CommandResult.empty();
        }

        if (isOther) {

After Change



        // Warp them.
        boolean isSafe = !args.getOne("f").isPresent() && adapter.getNodeOrDefault().isSafeTeleport();
        NucleusTeleportHandler.TeleportResult result =
                plugin.getTeleportHandler().teleportPlayer(player, wd.getLocation().get(), wd.getRotation(), isSafe);
        if (!result.isSuccess()) {
            if (charge) {
                plugin.getEconHelper().depositInPlayer(player, cost, false);
            }

            // Don't add the cooldown if enabled.
            throw ReturnMessageException.fromKey(result == NucleusTeleportHandler.TeleportResult.FAILED_NO_LOCATION ? "command.warps.nosafe" :
                    "command.warps.cancelled");
        }

        if (isOther) {